///用户登录
class UserLoginEntity {
  String? tokenName;
  String? tokenValue;
  bool? isLogin;
  String? loginId;
  String? loginType;
  int? tokenTimeout;
  int? sessionTimeout;
  int? tokenSessionTimeout;
  int? tokenActiveTimeout;
  String? loginDevice;
  String? tag;
  String? cid;
  String? sid;

  UserLoginEntity(
      {this.tokenName,
      this.tokenValue,
      this.isLogin,
      this.loginId,
      this.loginType,
      this.tokenTimeout,
      this.sessionTimeout,
      this.tokenSessionTimeout,
      this.tokenActiveTimeout,
      this.loginDevice,
      this.tag,
      this.cid,
      this.sid});

  UserLoginEntity.fromJson(Map<String, dynamic> json) {
    tokenName = json['tokenName'];
    tokenValue = json['tokenValue'];
    isLogin = json['isLogin'];
    loginId = json['loginId'];
    loginType = json['loginType'];
    tokenTimeout = json['tokenTimeout'];
    sessionTimeout = json['sessionTimeout'];
    tokenSessionTimeout = json['tokenSessionTimeout'];
    tokenActiveTimeout = json['tokenActiveTimeout'];
    loginDevice = json['loginDevice'];
    tag = json['tag'];
    cid = json['cid'];
    sid = json['sid'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['tokenName'] = tokenName;
    data['tokenValue'] = tokenValue;
    data['isLogin'] = isLogin;
    data['loginId'] = loginId;
    data['loginType'] = loginType;
    data['tokenTimeout'] = tokenTimeout;
    data['sessionTimeout'] = sessionTimeout;
    data['tokenSessionTimeout'] = tokenSessionTimeout;
    data['tokenActiveTimeout'] = tokenActiveTimeout;
    data['loginDevice'] = loginDevice;
    data['tag'] = tag;
    data['cid'] = cid;
    data['sid'] = sid;
    return data;
  }
}
